package com.yegs.jltqc.U8Service;

import com.yegs.jltqc.TO.NamePageQuery;
import com.yegs.jltqc.TO.OutComePageQuery;
import com.yegs.jltqc.TO.PpbarcodePageQuery;
import org.springframework.data.domain.Page;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface PpbarcodeService {

    Page<Map<String,Object>> query(PpbarcodePageQuery query);

    Map<String,Object> findByBarcode(String barcode);

    void updateByAutoid(Long autoid, Long qty);

    void success(String barcode, Long modid);

    void success(Long modid);

    void fail(String barcode, Long modid);

    void fail(Long modid);

    void updateByBarcode(String cbarcode,int status,int all);

    void updateByBarcodestatus(String cbarcode,int status,int all,int startindex,int endindex);

    boolean checkByMoidAndScbarcodenoAndEcbarcodeno(Long modid,int startindex,int endindex);

    List<Map<String, Object>> findAllByModid(Long modid);

    List<Map<String, Object>> findByMoidAndScbarcodenoAndEcbarcodeno(Long modid,int startindex,int endindex);

    Integer insertymhWorkshopPprd10(String ccode, Date ddate, String cwhcode, String cmarker);

    void insertymhWorkshopPprds10(Integer pid, String cinvcode,Double qty, String cposcode, String cbarcode,Long result,String ccode,Date ddate,String cwhcode, String cmaker);

    Integer findymhWorkshopPprds10(String cbarcode);

    String getCCode();

    void updateppbarcode(String barcode,String remark,Date date);

    void syncrdpprecord10_forqc2(Integer id);

    Map<String, Object> selectymhWorkshopPprds10ByCbarcode(String cbarcode);

    void insertQcrecode(String cbarcode, Long modid, Date ddate, String result);


    void updateYmhPoqcdata(String isqc, String cbarcode);

}
